package com.neu.flashmall.user.mapper;

import com.neu.flashmall.user.entity.UmsAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 12615
* @description 针对表【ums_user_receive_address(会员收货地址)】的数据库操作Mapper
* @createDate 2022-07-17 01:41:06
* @Entity com.neu.flashmall.user.entity.UmsAddress
*/
@Mapper
public interface UmsAddressMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UmsAddress record);

    int insertSelective(UmsAddress record);

    UmsAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UmsAddress record);

    int updateByPrimaryKey(UmsAddress record);

    List<UmsAddress> selectAll();

    UmsAddress selectDefaultByUserId(Long userId);

    List<UmsAddress> getUserAddresses(Long userId);

}
